package dn.service.impl;

import dn.common.BaseResultModel;
import dn.common.DefaultResultModel;
import dn.dao.UserDao;
import dn.entity.User;
import dn.service.UserService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;


@Service
public class UserServiceImpl implements UserService {
    @Resource
    UserDao userDao;

    @Override
    @Transactional
    public BaseResultModel addUser(User user) {
        userDao.addUser(user);
        return new DefaultResultModel();
    }




}
